<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@taglib prefix="sx" uri="/struts-dojo-tags" %>
    <%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title></title>
<sx:head/>
</head>
<body>
<s:url var="consulta" value="/model/Consulta!insert"/>
<s:actionerror/>
<s:form action="Consulta!insert" namespace="/model">
	<s:select name="entity.veterinario.id" headerKey="0" listKey="id"
            listValue="nome" list="%{veterinarios}" label = "Veterinarios"/>
    <sx:datetimepicker label="Data da Consulta" name="entity.dataConsulta"/>
    <sx:autocompleter name="entity.animal.nome" autoComplete="true" loadOnTextChange="false" list="%{animais}" listKey="id" listValue="nome" label="Nome do animal"/>
    <s:textfield name="entity.valorConsulta" label="Valor da consulta" size="6" maxlength="5"/>
    <s:textfield name="entity.horaConsulta" label="Hora da consulta" size="5" maxlength="5"/>
    <s:submit value="Cadastrar"/>
</s:form>
</body>
</html>